package com.bing.bean;

import org.springframework.http.HttpStatus;

/**
 * Created by kaibb on 15-12-25.
 */
public class ResultMsg {
    private int statusCode;
    private String message;
    private String forward;

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getForward() {
        return forward;
    }

    public void setForward(String forward) {
        this.forward = forward;
    }

    public static ResultMsg sucess() {
        ResultMsg resultMsg = new ResultMsg();
        resultMsg.setStatusCode(HttpStatus.OK.value());
        return resultMsg;
    }
}
